package cn.hxlc.tie.demo.modular.station.mapper;/*
 @author rui
 @date 2021/6/11 --14:42
*/

import cn.hxlc.tie.demo.modular.station.entity.User;
import cn.hxlc.tie.demo.modular.station.model.param.UserParam;
import cn.hxlc.tie.demo.modular.station.model.result.UserResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    int add(UserParam userParam);

    List<User> findAll(UserParam userParam);

    int updateById(int id);

    int delete(int id);

    IPage<User> queryListPage(@Param("page") Page<User> page,@Param("user") UserParam UserParam);

    List<User> findByOne(int id);

    int updateById(UserParam userParam);

    List<User> findDate(int id);

    int updateDate(UserParam userParam);

    Boolean batchDelete(@Param("list") List<Integer> ids);
}
